<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
    <script src="js/jquery-3.5.1.min.js"></script>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        .contain {
            background: rgb(226, 0, 0);
            width: 100%;
            height: 100vh;
        }

        img {
            width: 100%;
        }
    </style>
</head>

<body>
    <div class="contain">
        <img src="./image/bg_transition.png" alt="">
    </div>
</body>
<script>
    $(() => {
        var str = '无效的id或订单当前状态不能确认收货'
        console.log(str.substring(0,3) + '...')
        let u = navigator.userAgent
        // 判断ios
        let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
        // 判断android
        let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1

        //判断微信
        function isWeiXin() {
            var ua = window.navigator.userAgent.toLowerCase();
            if (ua.match(/MicroMessenger/i) == 'micromessenger') {
                return true; // 是微信端
            } else {
                return false;
            }
        }
        if (isWeiXin()) {
            if (window.__wxjs_environment === 'miniprogram') {
                wx.miniProgram.navigateTo({
                    url: '/pages/car/car?nav=1'
                })
            }
        }
        if (isiOS) {
            window.webkit.messageHandlers.goShop.postMessage('11111')
            return
        }
        if (isAndroid) {
            window.TiantianCharge_Android.openMarket()
            window.TiantianCharge_Android.closeH5()
            return
        }
    })
</script>

</html>